﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="NewsList.ascx.cs" Inherits="Com.Ompchina.Web.UIControl.NewsList" %>
<%@ Import Namespace="System.Collections.Generic" %>
<%@ Import Namespace="Model.Cms" %>

<%
    IList<NewsInfo> list = this._GetNews(5);
    foreach (NewsInfo info in list) 
    {
        %>
        <li class="clearfix">            
            <span>[<%= info.OnlineTime.ToString("yyyy-MM-dd") %>]</span>
            <a href='detail.aspx?id=<%= info.NewsID %>'><%= helper.CutString(info.NewsTitle, 14)%></a>
        </li>
        <%
    }
%>